using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Data;
using System.Data.SqlClient;

namespace Acms.SqlDal
{
    public class UserPostUploadAverageDal : UserPostUploadDal
    {
        public new enum Fields
        {
            Average
        }

        protected override void ReadRecord(Hashtable table, SqlDataReader reader)
        {
            base.ReadRecord(table, reader);
            GetReaderValue<decimal>(Fields.Average, reader, table);
        }

        public Hashtable GetById(int id)
        {
            SqlCommand cmd = CreateCommand("GetById");
            AddInputParameter(cmd, "Id", id, SqlDbType.Int);
            return ExecuteGetItem(cmd);
        }
    }
}
